package com.example.communitypro.pojo;

import java.io.Serializable;

public class CommunityManagement implements Serializable {
    private Integer managementNo;

    private Integer userNo;

    private Integer communityNo;

    private Integer manageLv;

    private static final long serialVersionUID = 1L;

    public Integer getManagementNo() {
        return managementNo;
    }

    public void setManagementNo(Integer managementNo) {
        this.managementNo = managementNo;
    }

    public Integer getUserNo() {
        return userNo;
    }

    public void setUserNo(Integer userNo) {
        this.userNo = userNo;
    }

    public Integer getCommunityNo() {
        return communityNo;
    }

    public void setCommunityNo(Integer communityNo) {
        this.communityNo = communityNo;
    }

    public Integer getManageLv() {
        return manageLv;
    }

    public void setManageLv(Integer manageLv) {
        this.manageLv = manageLv;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CommunityManagement other = (CommunityManagement) that;
        return (this.getManagementNo() == null ? other.getManagementNo() == null : this.getManagementNo().equals(other.getManagementNo()))
            && (this.getUserNo() == null ? other.getUserNo() == null : this.getUserNo().equals(other.getUserNo()))
            && (this.getCommunityNo() == null ? other.getCommunityNo() == null : this.getCommunityNo().equals(other.getCommunityNo()))
            && (this.getManageLv() == null ? other.getManageLv() == null : this.getManageLv().equals(other.getManageLv()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getManagementNo() == null) ? 0 : getManagementNo().hashCode());
        result = prime * result + ((getUserNo() == null) ? 0 : getUserNo().hashCode());
        result = prime * result + ((getCommunityNo() == null) ? 0 : getCommunityNo().hashCode());
        result = prime * result + ((getManageLv() == null) ? 0 : getManageLv().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", managementNo=").append(managementNo);
        sb.append(", userNo=").append(userNo);
        sb.append(", communityNo=").append(communityNo);
        sb.append(", manageLv=").append(manageLv);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}